package com.qifenqian.turbot.module.ui.loginetc

import android.content.Context
import android.content.Intent
import com.qifenqian.turbot.R
import com.qifenqian.turbot.base.BaseActivity
import com.qifenqian.turbot.config.Constant
import com.qifenqian.turbot.util.ActivityCollector
import kotlinx.android.synthetic.main.activity_dialog_upload_success.*

/**
 * @author H
 * @createDate 2018/12/17 16:18
 * @description 上传成功
 * @see
 * @since
 */
class DialogUploadSuccessActivity : BaseActivity<Nothing, Nothing>() {

    companion object {
        fun startThis(context: Context) {
            val intent = Intent(context, DialogUploadSuccessActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun bindLayoutId(): Int {
        return R.layout.activity_dialog_upload_success
    }

    override fun bindPresenter(): Nothing? {
        return null
    }

    override fun initial() {
        ActivityCollector.addActivity(this, Constant.TAG_ACTIVITY_COLLECTOR_REGISTER)
        btn_dialog_upload_success_close.setOnClickListener {
            ActivityCollector.finishAll(Constant.TAG_ACTIVITY_COLLECTOR_REGISTER)
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        ActivityCollector.removeActivity(this, Constant.TAG_ACTIVITY_COLLECTOR_REGISTER)
    }
}
